# $Id: PKGBUILD 137607 2011-09-10 03:20:46Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=streamripper
pkgver=1.64.6
pkgrel=2
pkgdesc="Records and splits streaming mp3 into tracks"
arch=('i686' 'x86_64')
url="http://streamripper.sourceforge.net"
license=('GPL')
depends=('glib2' 'libmad' 'faad2' 'libvorbis')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/streamripper/streamripper-${pkgver}.tar.gz)
md5sums=('a37a1a8b8f9228522196a122a1c2dd32')
sha1sums=('bc8a8d3ad045e0772ca691d2063c39efcc0dca45')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="$pkgdir" install
}
